package org.scboy.rbac.dao;

import java.util.List;

import org.scboy.coobi.sql.SqlEntity;
import org.scboy.utils.annotations.coobi.Execute;
import org.scboy.utils.annotations.coobi.Table;
import org.scboy.utils.entitys.coobi.Model;
import org.scboy.utils.enums.coobi.ExecuteType;

/**
 * 
 * 资源信息表业务类。
 * @author 杨浩
 *
 */
@Table("RBAC_RESOURCE")
public interface RbacResourceDao extends SqlEntity {
	
	/**
	 * 获取资源对于系统的配置
	 * @param params
	 * @return
	 */
	@Execute(id="RBAC_RESOURCE_SYSTEM_CHECK",type=ExecuteType.SELECT)
	public List<Model> getSystemCheck(Model params);
	
	/**
	 * 获取资源对于菜单的配置
	 * @param params
	 * @return
	 */
	@Execute(id="RBAC_RESOURCE_MENU_CHECK",type=ExecuteType.SELECT)
	public List<Model> getMenuCheck(Model params);
	
	/**
	 * 获取资源对于权限的配置
	 * @param params
	 * @return
	 */
	@Execute(id="RBAC_RESOURCE_PERMISSION_CHECK",type=ExecuteType.SELECT)
	public List<Model> getPermissionCheck(Model params);
}
